<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:p="http://primefaces.org/ui">

    <ui:composition>

        <p:dialog id="KimlikdogrulamaEditDlg" widgetVar="KimlikdogrulamaEditDialog" modal="true" resizable="false" appendToBody="true" header="#{bundle.EditKimlikdogrulamaTitle}">

            <h:form id="KimlikdogrulamaEditForm">

                <h:panelGroup id="display">
                    <p:panelGrid  columns="2" rendered="#{kimlikdogrulamaController.selected != null}">

                        <h:outputLabel value="#{bundle.EditKimlikdogrulamaLabel_kimlikDogrulamaId}" for="kimlikDogrulamaId" />
                        <h:outputText id="kimlikDogrulamaId" value="#{kimlikdogrulamaController.selected.kimlikDogrulamaId}" />

                        <p:outputLabel value="#{bundle.EditKimlikdogrulamaLabel_kullaniciAdi}" for="kullaniciAdi" />
                        <p:inputText id="kullaniciAdi" value="#{kimlikdogrulamaController.selected.kullaniciAdi}" title="#{bundle.EditKimlikdogrulamaTitle_kullaniciAdi}" required="true" requiredMessage="#{bundle.EditKimlikdogrulamaRequiredMessage_kullaniciAdi}"/>

                        <p:outputLabel value="#{bundle.EditKimlikdogrulamaLabel_sifre}" for="sifre" />
                        <p:inputText id="sifre" value="#{kimlikdogrulamaController.selected.sifre}" title="#{bundle.EditKimlikdogrulamaTitle_sifre}" required="true" requiredMessage="#{bundle.EditKimlikdogrulamaRequiredMessage_sifre}"/>

                        <p:outputLabel value="#{bundle.EditKimlikdogrulamaLabel_personelId}" for="personelId" />
                        <p:selectOneMenu id="personelId" value="#{kimlikdogrulamaController.selected.personelId}" required="true" requiredMessage="#{bundle.EditKimlikdogrulamaRequiredMessage_personelId}">
                            <f:selectItem itemLabel="#{bundle.SelectOneMessage}"/>
                            <f:selectItems value="#{personelController.items}"
                                           var="personelIdItem"
                                           itemValue="#{personelIdItem}"
                                           itemLabel="#{personelIdItem.personelId.toString()}"
                                           />
                            <f:converter binding="#{personelConverter}"/>
                        </p:selectOneMenu>

                        <p:outputLabel value="#{bundle.EditKimlikdogrulamaLabel_yetkiId}" for="yetkiId" />
                        <p:selectOneMenu id="yetkiId" value="#{kimlikdogrulamaController.selected.yetkiId}" required="true" requiredMessage="#{bundle.EditKimlikdogrulamaRequiredMessage_yetkiId}">
                            <f:selectItem itemLabel="#{bundle.SelectOneMessage}"/>
                            <f:selectItems value="#{yetkiController.items}"
                                           var="yetkiIdItem"
                                           itemValue="#{yetkiIdItem}"
                                           itemLabel="#{yetkiIdItem.yetkilId.toString()}"
                                           />
                            <f:converter binding="#{yetkiConverter}"/>
                        </p:selectOneMenu>
                    </p:panelGrid>
                    <p:commandButton actionListener="#{kimlikdogrulamaController.save}" value="#{bundle.Save}" update="display,:KimlikdogrulamaListForm:datalist,:growl" oncomplete="handleSubmit(xhr,status,args,KimlikdogrulamaEditDialog);"/>
                    <p:commandButton value="#{bundle.Cancel}" onclick="KimlikdogrulamaEditDialog.hide()"/>
                </h:panelGroup>

            </h:form>

        </p:dialog>

    </ui:composition>

</html>
